package cn.iocoder.yudao.module.system.api.CustomerService;

import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.system.api.user.CustomerServiceApi;
import cn.iocoder.yudao.module.system.api.user.dto.CustomerServiceRespDTO;
import cn.iocoder.yudao.module.system.dal.dataobject.user.SystemCustomerService;
import cn.iocoder.yudao.module.system.service.CustomerService.CustomerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 梁富贵
 * @Date 2024/10/25
 **/
@Service
public class CustomerServiceApiImpl implements CustomerServiceApi {
    @Resource
    private CustomerService customerService;
    @Override
    public CustomerServiceRespDTO getCustomerService(Long userId) {
        return BeanUtils.toBean(customerService.getCustomerServiceByLessReplication(userId), CustomerServiceRespDTO.class);
    }
}
